<!DOCTYPE html>
<html>
<head>
<title>Figure 2</title>
<style>
*{
    margin: 0;
    padding: 0;
}
body{
    padding: 200px 0;
    background-color: pink;
}
div{
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    background-color: #DDEEDD;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
	p {
        display: block;
        height: 200px;
        width: 200px;
        opacity: 0.5;
        border: 10px solid ;
        box-sizing: border-box;
        transition-property: height;
        transition-duration:2s;
        background-color: palegreen;
    }

    p:hover{
        transition-property: height,background-color;
        transition-duration:2s;
        height: 400px;
        background-color: darkorange;
    }

</style>
</head>
<body>
<div>
    <p></p>
</div>

</body>
</html>
